<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Laravel') }}@yield('title')</title>

    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
    <script src="{{ asset('js/flexible.js') }}" ></script>
</head>
@stack('styles')
<body ontouchstart class="mt-100">
    <div id="app">
        @yield('content')
        
        @section('tabbar')
            <div class="weui-tabbar">
                <a href="/" class="weui-tabbar__item @if (Request::path() == '/') weui-bar__item_on @endif">
                    <div class="weui-tabbar-icon">
                        <i class="icon iconfont icon-home"></i>
                    </div>
                    <p class="weui-tabbar__label">首页</p>
                </a>
                <a href="/self-support" class="weui-tabbar__item @if (Request::path() == 'product') weui-bar__item_on @endif">
                    <div class="weui-tabbar-icon">
                        <i class="icon iconfont icon-zyd"></i>
                    </div>
                    <p class="weui-tabbar__label">自营店</p>
                </a>
                <a href="/member" class="weui-tabbar__item @if (strpos(Request::path(), 'member') !== false ) weui-bar__item_on @endif">
                    <div class="weui-tabbar-icon">
                        <i class="icon iconfont icon-me"></i>
                    </div>
                    <p class="weui-tabbar__label">我的</p>
                </a>
            </div>
        @show
    </div>

    <!-- Scripts -->
    <script src="{{ asset('js/zepto.min.js') }}" ></script>
    <script src="{{ asset('js/weui.min.js') }}" ></script>
    <script src="{{ asset('js/swiper.min.js') }}"></script>
    <script src="{{ asset('js/mescroll.min.js') }}"></script>
    <script src="{{ mix('js/app.js') }}"></script>
    @stack('scripts')
</body>
</html>
